#pragma once
#include "DataReciver.h"
#include "DataSender.h"

class InstanceMgr
{
protected:
	InstanceMgr();
	~InstanceMgr() { _instance = nullptr; }
	static InstanceMgr* _instance;
private:
	DataReciver reciver;
	DataSender sender;
public:
	static InstanceMgr& GetInstance();
	DataReciver& GetReciver() { return reciver; }
	DataSender& GetSender() { return sender; }
};

#define sInstanceMgr InstanceMgr::GetInstance()
